//
//  SupplementaryInforTableViewCell.m
//  GLGW_Shoping
//
//  Created by yang on 2018/12/11.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "SupplementaryInforTableViewCell.h"

@implementation SupplementaryInforTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        GLGWView * inputView = [[GLGWView alloc] initWithInSuperView:self.contentView];
        inputView.backgroundColor = [UIColor colorWithHexString:@"#F8F8F8"];
        [inputView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.top.equalTo(self.contentView);
            make.right.equalTo(self.contentView.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(15));
            make.bottom.equalTo(self.contentView.mas_bottom).offset(-kHeightProportion_In_iPhoneTriploid(15));
        }];
        //
        GLGWLabel * leftLabel = [[GLGWLabel alloc] initWithFont:SYSTEMFONT(14) theColor:kColor_Rule_Black inSuperView:inputView];
        leftLabel.text = @"补充信息";
        [leftLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(inputView.mas_left).offset(kWidthProportion_In_iPhoneTriploid(15));
            make.top.equalTo(inputView.mas_top).offset(kHeightProportion_In_iPhoneTriploid(12));
            make.height.equalTo(@(kHeightProportion_In_iPhoneTriploid(20)));
        }];
        //
        GLGWTextView * putTextView = [[GLGWTextView alloc] initWithFontType:SYSTEMFONT(14) colorType:kColor_Rule_Black inSuperView:inputView];
        putTextView.placeholder = @"请填写您的优势，以提交中标的概率";
        putTextView.placeholderAttributes = @{NSFontAttributeName:[UIFont systemFontOfSize:14],NSForegroundColorAttributeName:[UIColor colorWithHexString:@"#999999"]};
        putTextView.backgroundColor = [UIColor colorWithHexString:@"#F8F8F8"];
        [putTextView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(leftLabel.mas_right).offset(kWidthProportion_In_iPhoneTriploid(10));
            make.top.equalTo(inputView.mas_top).offset(kHeightProportion_In_iPhoneTriploid(9));
            make.right.equalTo(inputView.mas_right).offset(-kWidthProportion_In_iPhoneTriploid(12));
            make.bottom.equalTo(inputView.mas_bottom).offset(-kHeightProportion_In_iPhoneTriploid(15));
        }];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
